<?php
namespace PsiFramework\Applications\DefaultApp\Classes\Actions\Message;

use \PsiFramework\Classes\Actions\AbstractAction;
use \PsiFramework\Classes\Util\Parameters\Action\ActionParameters;

/**
 * PsiFramework
 * Php Simple Framework
 *
 * @author Rémi San
 * @version beta
 */

/**
 * Classe d'action de message
 *
 * @package Actions.Message
 */
abstract class MessageAction extends AbstractAction
{
    /**
     * 
     * @return boolean
     */
    public function action($recipient=null)
    {
        return !is_null($this->_user) || !is_null($recipient);
    }
    
    /**
     * The main function of the method which is called every time
     * an action is created by the front controller.
     *
     */
    public function execute()
    {
        parent::execute();
    }
}
